﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Linq.Expressions;
using System.ComponentModel;
using System.Web.Mvc.Html;
using System.Resources;

namespace System.Web.Mvc.Html
{
    public static class LocalizedExtensions
    {/*
        public static MvcHtmlString LabelForLc<TModel, TValue>(this HtmlHelper<TModel> html, Expression<Func<TModel, TValue>> expression
            ) where TModel : class
        {
            ModelMetadata meta = ModelMetadata.FromLambdaExpression(expression, html.ViewData);
            string loclName = Res.GlobalStrings.ResourceManager.GetString(meta.DisplayName);
            return html.Label(loclName);
        }

        public static MvcHtmlString LabelForLc<TModel, TValue>(this HtmlHelper<TModel> html, 
                                                                Expression<Func<TModel, TValue>> expression,
                                                                ResourceManager resManager
            ) where TModel : class
        {
            ModelMetadata meta = ModelMetadata.FromLambdaExpression(expression, html.ViewData);
            string loclName = resManager.GetString(meta.DisplayName);
            return html.Label(loclName);
        }*/
    }
}
